import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '../views/Login.vue';
import home from '../views/home.vue';
import Upload from '../views/upload.vue';
import ImageList from '../components/imageList.vue';
import userlist from '../views/userlist.vue';
import loadlist from '../views/loadlist.vue';
import qqq  from '../views/homework.vue';
Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login 
    },
    {
      path: '/home',
      name: 'home',
      component: home
    },
    {
      path: '/qqq',
      name: 'qqq',
      component: qqq,
      children: [
        {
          path: '/Upload',
          name: 'Upload',
          component: Upload
        },{
          path: '/ImageList',
          name: 'ImageList',
          component: ImageList
        },{
          path: '/userlist',
          name: 'userlist',
          component: userlist
        },{
          path: '/loadlist',
          name: 'loadlist',
          component: loadlist
        },
      ]
    }
  ]
})
